|
Eclipse Platform Pre-release 3.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Extension to IAnnotationHover
for
IInformationControlCreator
,
IAnnotationHover
Method Summary | |
String |
getHoverInfo(ISourceViewer sourceViewer,
int lineNumber,
int first,
int number)
Returns the text which should be presented in the a hover popup window. |
IInformationControlCreator |
getInformationControlCreator()
Returns the information control creator of this annotation hover. |
ITextSelection |
getLineRange(ISourceViewer viewer,
int line,
int first,
int number)
Returns the range of lines that are covered by this hover for the given ISourceViewer at model line line . |
Method Detail |
public IInformationControlCreator getInformationControlCreator()
public String getHoverInfo(ISourceViewer sourceViewer, int lineNumber, int first, int number)
sourceViewer
- the source viewer this hover is registered withlineNumber
- the line number for which information is requestedfirst
- the first line in viewer
's document to considernumber
- the number of lines in viewer
's document to consider
null
if no such information existspublic ITextSelection getLineRange(ISourceViewer viewer, int line, int first, int number)
ISourceViewer
at model line line
.
viewer
- the viewer which the hover is queried forline
- the line which a hover is displayed forfirst
- the first line in viewer
's document to considernumber
- the number of lines in viewer
's document to consider
viewer
containing line
that is covered by the hover information returned by the receiver.
|
Eclipse Platform Pre-release 3.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |